#include <cstdio>

int gcd(int a, int b);

int main(int argc, char const *argv[]){
    int a, b;
    while (scanf("%d%d", &a, &b) != EOF)
        printf("%d\n", a*b / gcd(a,b));
    return 0;
}

int gcd(int a, int b){
    return b != 0 ? gcd(b, a % b) : a;
}

